package com.base.utils;

/**
 * 线程共享SessionId
 */
public class ThreadLocalUtil {
    private static ThreadLocal<String> tlSessionId = new ThreadLocal<>();

    public static String getSessionId(){
        return tlSessionId.get();
    }

    public static void setSessionId(String sessionId){
        tlSessionId.set(sessionId);
    }
}
